
using System.Web.UI.HtmlControls;
using System;
using System.Configuration;
using System.Drawing;
using System.Data;
using System.Web.UI.WebControls;
using Microsoft.VisualBasic;
using System.Collections;
using System.Web.UI;
using System.Web;



namespace smasb2b
{
	public class VNDW0013 : BasePage
	{
		
#region  Web Form 設計工具產生的程式碼
		
		//此為 Web Form 設計工具所需的呼叫。
		[System.Diagnostics.DebuggerStepThrough()]private void InitializeComponent()
		{
			
		}
		protected ddscControlLibrary.SubmitButtonCtrl btnAGREE;
		protected ddscControlLibrary.SubmitButtonCtrl btnEXIT;
		protected System.Web.UI.HtmlControls.HtmlTextArea area_tw;
		protected System.Web.UI.HtmlControls.HtmlTextArea area_en;
		protected ddscControlLibrary.SubmitButtonCtrl btnAISSENT;
		protected System.Web.UI.WebControls.Label REGISTER_TITLE;
		protected System.Web.UI.WebControls.Label lblREGISTER_TITLE;
		protected System.Web.UI.WebControls.Label lblVENDERENTER;
		
		//注意: 下列預留位置宣告是 Web Form 設計工具需要的項目。
		//請勿刪除或移動它。
		private System.Object designerPlaceholderDeclaration;
		
		private void Page_Init(System.Object sender, System.EventArgs e)
		{
			//CODEGEN: 此為 Web Form 設計工具所需的方法呼叫
			//請勿使用程式碼編輯器進行修改。
			InitializeComponent();
		}
		
#endregion

        private void Page_Load(System.Object sender, System.EventArgs e)
        {
            //在這裡放置使用者程式碼以初始化網頁
            if (GetLanguage() == "zh-en")
            {
                area_tw.Visible = false;
                area_en.Visible = true;
            }
            else
            {
                area_tw.Visible = true;
                area_en.Visible = false;
            }
            this.btnAGREE.Click += btnAGREE_Click;
            this.btnAISSENT.Click += btnAISSENT_Click;
        }
		
		
		
		private void btnAISSENT_Click(System.Object sender, System.EventArgs e)
		{
			try
			{
				Response.Redirect("/smasb2b/default.aspx");
			}
			catch (Exception ex)
			{
				showException(ex.Message);
			}
		}
		
		private void btnAGREE_Click(System.Object sender, System.EventArgs e)
		{
			try
			{
				Response.Redirect("/smasb2b/VND\\VNDW0010.aspx?action_type=ADD&GUID=" + Guid.NewGuid().ToString(), false);
			}
			catch (Exception ex)
			{
				showException(ex.StackTrace);
			}
		}
	}
	
}
